package com.lili.model.order.entity.order;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

import static com.baomidou.mybatisplus.annotation.IdType.ASSIGN_ID;

@Data
@TableName("li_order")
@ApiModel(value = "订单概要")
@NoArgsConstructor
public class Order {
    @TableId(value ="id" ,type = ASSIGN_ID)
    private  Long id;
    @ApiModelProperty("订单编号")
    private String sn;
    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty(value = "订单来源")
    private String clientType;
    @ApiModelProperty(value = "订单类型")
    private String orderType;
    @ApiModelProperty(value = "订单状态")
    private String orderStatus;
    @ApiModelProperty(value = "总价格")
    private Double flowPrice;
    @ApiModelProperty(value = "用户名")
    private String memberName;
    @ApiModelProperty(value = "是否为商品订单")
    private String isEntity;
    @ApiModelProperty(value = "店铺ID")
    private Long storeId;



}
